receiveModalCtrl.$inject = [
    '$scope',
    '$uibModalInstance',
    'orderService',
    'order'
]

function receiveModalCtrl($scope, $uibModalInstance, orderSvc, order) {
    var mctrl = this;
    
    mctrl.cancel = function() {
        $uibModalInstance.dismiss('cancel');
    }

    mctrl.confirm = function() {
        console.log('confirm receive modal jinlaile ');
        console.log(order);
        orderSvc.updateOstateByOid(order._id,'4',function(err, order) {
            $uibModalInstance.close(order);
        });
    }

}

module.exports = receiveModalCtrl;
